package cn.xhjava.crm.settings.service;

import cn.xhjava.crm.settings.domain.User;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Author:   XiaHu
 * Date:     2023/6/20
 * 用户服务层
 */
@Service
public interface UserService {


    // 根据登陆用户的用户名、密码在数据库中查询
    User queryUserByLoginActAndPwd(Map<String, Object> map) throws Exception;

    User queryUserByLoginAct(Map<String, Object> map) throws Exception;

    void add(Map<String, Object> map) throws Exception;

    List<User> queryAllUsers() throws Exception;

    int update(User user) throws Exception;
}
